//设置采购申请审核按钮状态
function setApplicationOnlyViewButtonsStatus(status) {
    var nodeArray = [$("#verifyApplication"), $("#notVerifyApplication")];
    setLinkButtonStatus(nodeArray, [0, 0]);
    if (status === "提交") {
        setLinkButtonStatus(nodeArray, [1, 1]);
    }
}

//采购申请view审批页面刷新
function refreshApplicationOnlyViewPage(data) {
    //上部init
    loadData(data.object.application);
    $('#totalAmount').val(formatNum(data.object.application.totalAmount));
    $('#totalWeight').val(formatWeight(data.object.application.totalWeight));
    $('#taxGoodsAmount').val(formatNum(data.object.application.taxGoodsAmount));
    $('#taxAmount').val(formatNum(data.object.application.taxAmount));
    $('#contractDate').datebox({
        required: true,
        editable: false
    });
    $('#contractDate').datebox("setValue", data.object.application.contractDate);
    //下部init
    var options = getNotEditSubOptions();
    options.data = data.object.applicationSubList;
    initDataGridNoPager($('#subItem'), options);
    setApplicationOnlyViewButtonsStatus(data.object.application.status);
}